package com.ibeeking.found.file.rest.service.office.documentserver.managers.document;

import java.util.ArrayList;
import java.util.Map;

// specify the document manager functions
public interface DocumentManager {

    String getCorrectName(String fileName);  // get a file name with an index if the file with such a name already exists

    String getFileUri(String fileName, Boolean forDocumentServer);  // get file URL

    String getHistoryFileUrl(String fileName, Integer version, String file, Boolean forDocumentServer);  // get file URL

    String getCallback(String userFileId);  // get the callback URL

    String getDownloadUrl(String fileName, Boolean forDocumentServer);  // get URL to download a file

    ArrayList<Map<String, Object>> getFilesInfo();  // get file information

    ArrayList<Map<String, Object>> getFilesInfo(String fileId);  // get file information by its ID

    String versionDir(String path, Integer version, boolean historyPath);  // get the path to the file version by the history path and file version
//    String createDemo(String fileExt,Boolean sample,String uid,String uname) throws Exception;  // create demo document

    String getCreateUrl(String fileName, Boolean sample);  // get URL to the created file
}
